package com.hlf.modules.merchant.user.service.impl;

import com.hlf.modules.merchant.user.entity.UserBind;
import com.hlf.modules.merchant.user.mapper.UserBindMapper;
import com.hlf.modules.merchant.user.service.UserBindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户绑定
 * Created by Administrator on 2017/9/22.
 */
@Service("UserBindService")
public class UserBindServiceImpl implements UserBindService {

    @Autowired
    private UserBindMapper userBindMapper;

    /**
     * 根据userId查用户绑定信息
     * @param userId
     * @return
     */
    @Override
    public List<UserBind> queryListForUserId(Long userId) {
        List<UserBind> userBindList = userBindMapper.queryListForUserId(userId);
        return userBindList;
    }


}
